package exception;

import utils.ResponseCode;

public class RegisterException extends Exception{
    private ResponseCode error;

    public ResponseCode getError(){
        return error;
    }
    public  RegisterException(ResponseCode error){
        super(error.getDesc());
        this.error=error;
    }
}
